<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>条件判断</title>
    <script>
        var num = 60;
        if (num>=60){
            console.log("及格")
        }else {
            console.log("不及格")
        }

        //switch case break default
        var v1 = 5;
        switch (v1) {
            case 1:
                console.log("A");
                break;
            case 2:
                console.log("B");
                break;
            case 3:
                console.log("C");
                break;
            case 4:
                console.log("D");
                break;
            default:
                console.log('您输入的参数是:' + v1);
        }
    </script>
</head>
<body>

</body>
</html>